#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	float r1 = 0.0, r2 = 0.0;
	scanf("%f %f", &r1, &r2);
	printf("%f", r1 * r2 / (r1 + r2));
	return 0;
}